<?php 
	session_start();
	include("connect.php");
	if(isset($_POST['uname']) && isset($_POST['pwd']))
	{	
		$UserName=$_POST['uname'];
		$Password=md5($_POST['pwd']);
		$sql1="select * from user where email_id='".$UserName."' and password='".$Password."'";
		$result=mysql_query($sql1,$con);
		$num_rows = mysql_num_rows($result);
		if($num_rows != 0){
		    $_SESSION['issess']=1;
		    echo '1';
		}else{
		   echo '0';
        }
		mysql_close();
	}
?>